package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.Orders;

import java.util.List;

public interface OrdersService {
    /**
     * 创建订单
     * @param orders
     * @return
     */
    public int creatOrders(Orders orders);


    /**
     * 根据orderId订单信息
     *
     * @param orderId
     * @return
     */

    public Orders getOrdersById(Integer orderId);

    /**
     * 根据userId查询订单列表
     *
     * @param userId
     * @return
     */
    public List<Orders> listOrdersByUserId(String userId);

}
